package com.woniu.p2p.controller;

import com.woniu.p2p.entity.Invest;
import com.woniu.p2p.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    TestService testService;


    @RequestMapping("/findAll")
    public List<Invest> findAll(){
        return testService.selectAll();
    }
}
